package stark.app.function.imgmodel;

import android.os.Bundle;

import stark.app.R;
import stark.app.base.BaseWithFragmentActivity;
import stark.app.databinding.FragmentImgModelDemoBinding;
import stark.common.basic.base.BaseNoModelFragment;
import stark.common.basic.constant.Extra;

/**
 * Author：daizhongbin on 2025/5/21
 * Email：1027154338@qq.com
 * Desc:
 */
public class ImgModelDemoFragment extends BaseNoModelFragment<FragmentImgModelDemoBinding> {
    @Override
    protected int onCreate() {
        return R.layout.fragment_img_model_demo;
    }

    @Override
    protected void initView() {
        mDataBinding.btnTest.setOnClickListener(v -> {
            goImgModelListFragment(true);
        });
        mDataBinding.btnNoTest.setOnClickListener(v -> {
            goImgModelListFragment(false);
        });
    }

    @Override
    protected void initData() {
    }

    private void goImgModelListFragment(boolean isTest) {
        Bundle bundle = new Bundle();
        bundle.putBoolean(Extra.MODE, isTest);
        BaseWithFragmentActivity.start(getContext(), "神图定制", ImgModelListFragment.class, bundle);
    }
}
